package com.genshang.restaurant.result;

public enum LevelEnum {
    ONE("1", "普卡"),
    TWO("2", "银卡"),
    THREE("3", "金卡"),
    FOUR("4", "黑卡");

    public static String getLevelNameByLevel(String level) {
        for (LevelEnum levelEnum : LevelEnum.values()) {
            if (levelEnum.getLevel().equals(level)) {
                return levelEnum.getLevelName();
            }
        }
        return "";
    }

    private String level;
    private String levelName;

    LevelEnum(String level, String levelName) {
        this.level = level;
        this.levelName = levelName;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }
}
